function add(a,b) {
    return a -b
}


const data = [1,3,4,5,19, 89,10]
data.sort(add)
console.log(data.sort(add));